package com.wordplat.ikvstockchart.detector;

/**
 * ViewConfiguration
 *
 * @since 2021-05-09
 */
public class ViewConfiguration {


    private static final int DEFAULT_LONG_PRESS_TIMEOUT = 500;

    private static final int TAP_TIMEOUT = 100;

    private static final int DOUBLE_TAP_TIMEOUT = 300;

    private static final int DOUBLE_TAP_MIN_TIME = 40;

    private static final int TOUCH_SLOP = 100;

    private static final int DOUBLE_TAP_SLOP = 100;

    private static final int MINIMUM_FLING_VELOCITY = 50;

    private static final int MAXIMUM_FLING_VELOCITY = 8000;

    private ViewConfiguration() {
    }

    /**
     * getLongPressTimeout
     *
     * @return DEFAULT_LONG_PRESS_TIMEOUT
     */
    public static int getLongPressTimeout() {
        return DEFAULT_LONG_PRESS_TIMEOUT;
    }

    /**
     * getTapTimeout
     *
     * @return TAP_TIMEOUT
     */
    public static int getTapTimeout() {
        return TAP_TIMEOUT;
    }

    /**
     * getDoubleTapTimeout
     *
     * @return DOUBLE_TAP_TIMEOUT
     */
    public static int getDoubleTapTimeout() {
        return DOUBLE_TAP_TIMEOUT;
    }

    /**
     * getDoubleTapMinTime
     *
     * @return DOUBLE_TAP_MIN_TIME
     */
    public static int getDoubleTapMinTime() {
        return DOUBLE_TAP_MIN_TIME;
    }

    /**
     * getTouchSlop
     *
     * @return TOUCH_SLOP
     */
    public static int getTouchSlop() {
        return TOUCH_SLOP;
    }

    /**
     * getDoubleTapSlop
     *
     * @return DOUBLE_TAP_SLOP
     */
    public static int getDoubleTapSlop() {
        return DOUBLE_TAP_SLOP;
    }

    /**
     * getMinimumFlingVelocity
     *
     * @return MINIMUM_FLING_VELOCITY
     */
    public static int getMinimumFlingVelocity() {
        return MINIMUM_FLING_VELOCITY;
    }

    /**
     * getMaximumFlingVelocity
     *
     * @return MAXIMUM_FLING_VELOCITY
     */
    public static int getMaximumFlingVelocity() {
        return MAXIMUM_FLING_VELOCITY;
    }

    /**
     * getScaledTouchSlop
     *
     * @return TOUCH_SLOP
     */
    public static int getScaledTouchSlop() {
        return TOUCH_SLOP;
    }
}
